package com.montran.serializableFile;

import java.util.Vector;


public class Queue extends Vector{
	/*
	  ** FIFO, first in first out
	  */
	  Queue() {
	  super();
	  }
	 
	 void put(Object o) {
	  addElement(o);
	  }

	 Object get() {
	  if (isEmpty()) return null;
	    Object o = firstElement();
	    removeElement(o);
	    return o;
	  }

	 Object peek() {
	  if (isEmpty()) return null;
	    return firstElement();
	    }
}
